import java.util.Scanner;

public class Demo {
    public static int gcd(int a, int b){
        if(b == 0) { return a;}
        return gcd(b, a % 10);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt(), b = in.nextInt();
        System.out.println(a * b / gcd(a, b));
    }
}
